package com.lzh.runke.core.entity;

import com.lzh.runke.core.enums.CodeTypeBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

/**
 * 码表实体类
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class Code extends BaseEntity {

    private static final long serialVersionUID = -6939865433551541948L;
    /**
     * 父ID
     */
    private String pId;

    /**
     * 类型
     */
    private CodeTypeBaseEnum type;

    /**
     * 码值
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 排序号
     */
    private String orderNo;
}
